package com.learn.code.juc.sync;

/**
 * @author : 翌擎科技
 * @date : 2022/8/2 10:27
 */
public class SyncDemo {

    public synchronized static void syncA() {
        System.out.println("锁：syncA");
    }

    public synchronized static void syncB() {
        System.out.println("锁：syncB");
    }

    public synchronized  void syncC() {
        System.out.println("锁：syncC");
    }

    public synchronized  void syncD() {
        System.out.println("锁：syncD");
    }
}
